﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using VideoCache.Server.Model;

namespace VideoCache.Server.MVCWeb.Areas.Admin.Models
{
    public class DictionaryTreeModel
    {
        public int id { get; set; }
        public string text { get; set; }
        public List<DictionaryTreeModel> children { get; set; }

        public DictionaryTreeModel()
        {
            this.children = new List<DictionaryTreeModel>();
        }

        public DictionaryTreeModel(DictionaryInfo info)
        {
            this.id = info.Id;
            this.text = info.Name;
            this.children = new List<DictionaryTreeModel>();
        }
    }
}